package com.adcc.foc.service;

import com.adcc.foc.domain.Organization;
import com.adcc.foc.domain.TreeNode;

import java.util.List;
import java.util.Map;

/**
 * Created by houxy on 2016/8/3.
 */
public interface OrganizationService {
    //获取所有组织节点树
    List<TreeNode> getNodeList(String orgId, String isShowAll);

    //修改节点名称
    Map<String, Object> alterName(String id, String deptName);

    //新增节点
    Map<String, Object> newNode(String pid, String deptName);

    //删除选中节点及其子节点
    Map<String, Object> deleteNode(String id);

    //转移节点
    Map<String, Object> moveNode(String sid, String pid);

    //根据部门id获取部门名称
    Organization findByOrgId(String orgId);
}
